package com.lovar.gaming.dao.repository;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovar.gaming.dao.domain.SysMenuRole;
import com.lovar.gaming.dao.mapper.SysMenuRoleMapper;
import org.springframework.stereotype.Service;

/**
 * @author 穹龙
 * @description 针对表【sys_menu_role(菜单角色表)】的数据库操作Repository实现
 * @createDate 2024-08-06 17:09:56
*/
@Service
public class SysMenuRoleRepository extends ServiceImpl<SysMenuRoleMapper, SysMenuRole> {

    /**
     * 根据主键获取菜单角色表详情
     *
     * @param id 主键Id
     * @return SysMenuRole
    */
    public SysMenuRole queryById(String id) {
        return lambdaQuery().eq(SysMenuRole::getId, id).one();
    }

}




